package com.panda.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.panda.entity.po.Video;
import com.panda.entity.vo.PageVo;
import com.panda.entity.vo.VideoDetailVo;
import com.panda.entity.vo.VideoVo;
import com.panda.utils.RespondResult;
import org.springframework.data.redis.connection.ReactiveSubscription;

/**
 * (Video)表服务接口
 *
 * @author makejava
 * @since 2022-05-13 15:07:54
 */
public interface VideoService extends IService<Video> {

    RespondResult<VideoVo> postVideo(VideoVo video);

    RespondResult<PageVo<VideoVo>> getAllVideos(Long id, Integer pageNum, Integer pageSize, Long categoryId,String keyword);

    RespondResult<VideoDetailVo> getVideoDetail(Long id);

    RespondResult deleteVideo(Long id);

    RespondResult createdVideoStatistic();

    RespondResult categoryStatistic();

    RespondResult createdCategoryOfVideoStatistic(String categoryName);

    RespondResult hotVideos(String topic);

    RespondResult<VideoVo> modifyVideo(Long id,VideoVo videoVo);
}

